package com.yunhe.common.repository.data.impl;

import com.yunhe.common.repository.data.BaseNeo4jRepository;
import org.neo4j.ogm.session.Session;
import org.springframework.data.neo4j.repository.support.SimpleNeo4jRepository;
import org.springframework.transaction.annotation.Transactional;

import java.io.Serializable;
import java.util.List;

/**
 * 基础Neo4j仓库实现类
 * @author liuronglei
 */
@Transactional(readOnly = true)
public class BaseNeo4jRepositoryImpl<T, ID extends Serializable>
        extends SimpleNeo4jRepository<T, ID> implements BaseNeo4jRepository<T, ID> {
    private int BATCH_SIZE = 500;
    private Session session;

    public BaseNeo4jRepositoryImpl(Class<T> domainClass, Session session) {
        super(domainClass, session);
        this.session = session;
    }

    @Override
    @Transactional
    public<S extends T> S insert(S entity) {
        return null;
    }

    @Override
    @Transactional
    public <S extends T> List<S> insert(List<S> var1) {
        return null;
    }

    @Override
    @Transactional
    public <S extends T> S update(S entity) {
        return null;
    }

    @Override
    @Transactional
    public <S extends T> List<S> update(List<S> var1) {
        return null;
    }
}
